package adapter;

import movement.Location;
import be.kuleuven.cs.swop.api.ILocation;

public class ALocation implements be.kuleuven.cs.swop.api.ILocation {

	private Location location;
	
	public ALocation(Location location){
		this.location=location;
	}
	
	@Override
	public double getDistanceTo(ILocation location) {
		return this.location.distance(location.getX(), location.getY());
	}

	@Override
	public int getX() {
		return location.getX();
	}

	@Override
	public int getY() {
		return location.getY();
	}

}
